package com.internetCafes.spms.web.certificate.common.cont;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 证书流转常量整理
 * @author HHKJ-SERVER-ZJ 2022/6/15 11:35
 */
public class CertTransactionConst {

    /**
     * 证书流转操作
     */
    @Getter
    @AllArgsConstructor
    public enum Type {

        AFFILIATION_IN(11, "挂入"),
        AFFILIATION_OUT_RETURN_2(12, "挂还"),
        AFFILIATION_OUT(21, "挂出"),
        AFFILIATION_OUT_RETURN(22, "收回"),
        BORROW_OUT(3, "借出"),
        BORROW_OUT_RETURN(30, "还回"),
        ;
        private Integer id;
        private String typeName;
    }

    @Getter
    @AllArgsConstructor
    public enum StatusTag {
        IN_HAND(0, "进行中"),
        COMPLETION(1, "已结束"),
        ;
        private Integer id;
        private String tagName;
    }

    /** 借入来源 - 具体使用，暂时无从追溯 */
    @Getter
    @AllArgsConstructor
    public enum BorrowCandidatesSources {
        PERSONAL(1, "个人"),
        OTHER(2, "其他"),
        ;
        private Integer id;
        private String sourceName;
    }
}
